diff options
Diffstat (limited to 'website/src/pages/blog/[...slug].astro')
| -rw-r--r-- | website/src/pages/blog/[...slug].astro | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/website/src/pages/blog/[...slug].astro b/website/src/pages/blog/[...slug].astro index a4168b6..28d5ec0 100644 --- a/website/src/pages/blog/[...slug].astro +++ b/website/src/pages/blog/[...slug].astro @@ -53,6 +53,11 @@ const Content = post.filePath?.endsWith('.gmi') : (await render(post)).Content; --- -<BlogPost {...post.data}> +<BlogPost + title={post.data.title} + description={post.data.description} + pubDate={post.data.pubDate ?? new Date(post.id)} + updatedDate={post.data.updatedDate} +> { post.filePath?.endsWith('.gmi') ? <Fragment set:html={Content}></Fragment> : <Content />} </BlogPost> |
